package Checkers;  

public class Coord
{
    public int x,y;
    
    public Coord(int x0,int y0)
    {
        x=x0;
        y=y0;
    }
    
    public Coord(Coord c)
    {
        x=c.x;
        y=c.y;
    }
    
    public int getX()
    {
        return x;
    }
    
    public int getY()
    {
        return y;
    }
    
    public String toString()
    {
        return new String("("+x+":"+y+")");
    }
    
    public boolean equals(Coord c)
    {
        if (c==null)
            return false;
        else
            return x==c.x && y==c.y;
    }
    
}
